package model.stats;

public class Stat {

	private String name;
	private int baseValue;
	private StatMods mods;
	
	

	public Stat(String name, int baseValue) {
		this.name = name;
		this.baseValue = baseValue;
		this.mods = new StatMods();
	}
	
	public int getValue() {
		return mods.modify(baseValue);
	}
	public void increment(int inc) {
		baseValue+= inc;
	}
	
	public void update() {
		mods.update();
	}
	
	public void addTempMod(int mag, int dur){
		mods.addTempMod(mag, dur);
	}
	public void addPersistMod(int mag){
		mods.addPersistMod(mag);
	}
	
}
